package factory;

import factory.ingredient.*;
import factory.ingredient.impl.*;

/**
 * 纽约原料工厂的实现
 */
public class NYPizzaIngredientFactory implements PizzaIngredientFactory { // 所有的原料工厂都必须实现 PizzaIngredientFactory 接口
 
	public Dough createDough() {
		return new ThinCrustDough();
	}
 
	public Sauce createSauce() {
		return new MarinaraSauce();
	}
 
	public Cheese createCheese() {
		return new ReggianoCheese();
	}
 
	public Veggies[] createVeggies() {
		// 各种蔬菜
		Veggies veggies[] = { new Garlic(), new Onion(), new Mushroom(), new RedPepper() };
		return veggies;
	}
 
	public Pepperoni createPepperoni() {
		return new SlicedPepperoni();
	}

	public Clams createClam() {
		return new FreshClams();
	}
}
